<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script type="text/javascript" src="http://localhost:8080/chezhujie/jstool/jquery-3.1.1.min.js"></script>
		<script type="text/javascript" src="http://localhost:8080/chezhujie/jstool/bootstrap-3.3.7/js/bootstrap.js"></script>
		<link rel="stylesheet" type="text/css" href="http://localhost:8080/chezhujie/jstool/bootstrap-3.3.7/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="http://localhost:8080/chezhujie/jstool/bootstrap-3.3.7/css/bootstrap-theme.css" />

		<script type="text/javascript" src="http://localhost:8080/chezhujie/jstool/bootstrap-fileinput/js/fileinput.js"></script>
		<script type="text/javascript" src="http://localhost:8080/chezhujie/jstool/bootstrap-fileinput/js/locals/zh.js"></script>
		<link rel="stylesheet" type="text/css" href="http://localhost:8080/chezhujie/jstool/bootstrap-fileinput/css/fileinput.min.css" />
		<script type="text/javascript">
            $(function() {
                //初始化

                $("#file-5").fileinput({
                    uploadUrl: "/file-upload-batch/1",
                    uploadAsync: false,
                    minFileCount: 2,
                    maxFileCount: 5,

                    purifyHtml: true, // this by default purifies HTML data for preview
                    uploadExtraData: {
                        img_key: "1000",
                        img_keywords: "happy, places",
                    }
                });
            });
		</script>
	</head>

	<body>
		<form action="http://localhost:8080/chezhujie/api1/commentsAdd.jn" enctype="multipart/form-data" method="post">
			<h1>新增评论</h1>
			评论图片及视频文件<input id="file-5" name="files" class="file file-loading" type="file" multiple><br/>
			用户id<input name="userinfoId"  type="text" value=""/><br/>
			评论内容<input name="content"  type="text" value=""/><br/>
			评论对象id<input name="objectId"  type="text" value=""/><br/>
			评论对象类型<input name="objectType"  type="text" value=""/><br/>
			<button class="btn btn-success">提交</button>
		</form>
		<hr/>
		<form action="http://localhost:8080/chezhujie/api1/replyAdd.jn" method="post">
			<h1>新增回复</h1>
			用户id<input name="userinfoId"  type="text" value=""/><br/>
			回复内容<input name="content"  type="text" value=""/><br/>
			回复上一个回复<input name="parentReplyId"  type="text" value=""/><br/>
			回复评论<input name="commentsId"  type="text" value=""/><br/>
			<button class="btn btn-success">提交</button>
		</form>
	</body>

</html>